import request from '@/utils/request'

// 查询健步风采照片列表
export function listWorkImg(query) {
  return request({
    url: '/applet/workImg/list',
    method: 'get',
    params: query
  })
}

// 查询健步风采照片详细
export function getWorkImg(id) {
  return request({
    url: '/applet/workImg/' + id,
    method: 'get'
  })
}

// 新增健步风采照片
export function addWorkImg(data) {
  return request({
    url: '/applet/workImg',
    method: 'post',
    data: data
  })
}

// 修改健步风采照片
export function updateWorkImg(data) {
  return request({
    url: '/applet/workImg',
    method: 'put',
    data: data
  })
}

// 修改规章制度状态
export function changeWorkImgStatus(id, status) {
  return request({
    url: `/applet/workImg/changeStatus/${id}/${status}`,
    method: 'get'
  })
}

// 删除健步风采照片
export function delWorkImg(id) {
  return request({
    url: '/applet/workImg/' + id,
    method: 'delete'
  })
}
